import request from '@/utils/request'

// 查询我的申请列表
export function listApplcation(query) {
  return request({
    url: '/member/applcation/list',
    method: 'get',
    params: query
  })
}

// 查询我的申请详细
export function getApplcation(id) {
  return request({
    url: '/member/applcation/' + id,
    method: 'get'
  })
}

// 新增我的申请
export function addApplcation(data) {
  return request({
    url: '/member/applcation',
    method: 'post',
    data: data
  })
}

// 修改我的申请
export function updateApplcation(data) {
  return request({
    url: '/member/applcation',
    method: 'put',
    data: data
  })
}

// 删除我的申请
export function delApplcation(id) {
  return request({
    url: '/member/applcation/' + id,
    method: 'delete'
  })
}

// 导出我的申请
export function exportApplcation(query) {
  return request({
    url: '/member/applcation/export',
    method: 'get',
    params: query
  })
}